//
//  YsGetPictureClipManager.h
//  YsGetPictureClip
//
//  Created by Cer on 2020/4/8.
//

#import <Foundation/Foundation.h>
#import <Photos/Photos.h>

typedef NS_ENUM(NSUInteger, YsGetPictureClipType) {
    YsGetPictureClipTypeCamera = 0,
    YsGetPictureClipTypeAlbum = 1
};

@protocol YsGetPictureClipManagerDelegate <NSObject>
+ (nullable instancetype)shareManger;
@end

@interface YsGetPictureClipManager : NSObject <YsGetPictureClipManagerDelegate>
- (void)pushImagePickerWithVC:(nonnull UIViewController *)vc type:(YsGetPictureClipType)type
      addHandlersForcompleted:(nonnull void(^)(UIImage * _Nullable image, id _Nullable asset))completed;
@end


